import axiosInstance from "../axiosinstance";

const orderInfo={
    //同名结构，前端传送也必须是这个名字
    submitOrder(orderInfo){
        return axiosInstance.post('orderInfo/submitOrder',orderInfo,{
            headers:{"Content-Type":"application/json"}
        })
    },
    findById(id){
        return axiosInstance.get('orderInfo/findById',{
            params:{id}
        })
    },
    getMyOrderListByPage(pageIndex=1 ){
        return axiosInstance.get('orderInfo/getMyOrderListByPage',{
            params:{pageIndex }
        })
    },
    //付款id:订单编号
    userPayOrder(id ){
        return axiosInstance.get('orderInfo/userPayOrder',{
            params:{id},
           
        })
    },


}

export default orderInfo